OTGetNBPEntityLengthAsAddress
Obtains the size of an NBP entity structure.C INTERFACE
size_t OTGetNBPEntityLengthAsAddress(const NBPEntity* nbpEntity);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
nbpEntity
- A pointer to the NBP entity structure you wish to determine the length of.
SPECIAL CONSIDERATIONS
Use this function to determine the appropriate buffer size for an NBP entity before using theOTSetAddressFromNBPEntity
function.DESCRIPTION
TheOTGetNBPEntityLengthAsAddress
function obtains the number of bytes needed to store an NBP entity structure into an NBP or combined DDP-NBP address structure.SEE ALSO
The NBP entity structure is described in the section "The NBP Entity Structure," beginning on page 10-20.The NBP address structure is described in the section "The NBP Address Structure," beginning on page 10-17.
The combined DDP-NBP entity structure is described in the section "The Combined DDP-NBP Address Structure," beginning on page 10-17.
To store an NBP entity structure as an NBP address string, use the
OTSetAddressFromNBPEntity
function (page 10-27).